<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>诊疗卡管理</title>
</head>
<body>
	<table class="easyui-datagrid" id="check_all_card" 
		data-options="title:'所有数据',toolbar:'#search_bar_card',
			fit:true,pagination:true,url:'checkAllCard',
			striped:true,loadMsg:'数据加载中',singleSelect:true,
			pageList:[10,15,20,25,30]">
		<thead>
			<tr>
				<th data-options="field:'cradId',width:'10%',halign:'center'">卡号</th>
				<th
					data-options="field:'name',width:'10%',halign:'center',editors:'text'">姓名</th>
				<th
					data-options="field:'sex',width:'5%',halign:'center',editors:'text'">性别</th>
				<th
					data-options="field:'age',width:'5%',halign:'center',editors:'text'">年龄</th>
				<th
					data-options="field:'address',width:'15%',halign:'center',editors:'text'">地址</th>
				<th data-options="field:'time',width:'15%',halign:'center'">办卡时间</th>
				<th
					data-options="field:'idCard',width:'18%',halign:'center',editors:'text'">身份证</th>
				<th data-options="field:'status',width:'10%',halign:'center'">状态</th>
				<th
					data-options="field:'caozuo',width:'12%',halign:'center',formatter:card_caozuo">操作</th>
			</tr>
		</thead>
	</table>
	<!-- 搜索栏  -->
	<div id="search_bar_card" style="padding:10px 0px 5px 10px">
		<a id="check_all_card2" onclick="check_all_card()"
			class="easyui-linkbutton" data-options="iconCls:'icon-check-all'">查看所有</a>
		<div id="card_time_start"
			data-options="prompt:'办卡起始时间',editable:false,buttons:buttons" 
			class="easyui-datebox"
			style="width: 150px; height: 26px;"></div>
		<div id="card_time_end" 
			data-options="prompt:'办卡结束时间',editable:false,buttons:buttons"
			class="easyui-datebox" style="width: 150px; height: 26px;"></div>
		<a id="card_search" onclick="check_by_time()"
			class="easyui-linkbutton"
			data-options="iconCls:'icon-zoom'">时间搜索</a>
		<!-- 搜索框 -->
		<input class="easyui-searchbox" style="width: 200px;height: 26px"
			id="card_searchbox" 
			data-options="menu:'#card_condition',validType:'search_name'" />
		<div id="card_condition" data-options="onClick:on_select_menu" style="width: 50px">
			<div data-options="name:'name'" id="card_name" name="name">姓名</div>
			<div data-options="name:'age'" id="card_age" name="age">年龄</div>
			<div data-options="name:'cradId'" id="card_number" name="cradId">卡号</div>
			<div data-options="name:'idCard'" id="card_id_card" name="idCard">身份证</div>
			<div data-options="name:'address'" id="card_address" name="address">地址</div></div>
			
		<select id="card_status" name="status" class="easyui-combobox"
			style="width: 60px" data-options="panelHeight:'auto',editable:false">
			<option>状态</option>
			<option>正常</option>
			<option>丢失</option></select> 
		<select id="card_sex" style="width: 55px"
			class="easyui-combobox"
			data-options="panelHeight:'auto',editable:false">
			<option>性别</option>
			<option>男</option>
			<option>女</option></select> 
		<a id="card_search" onclick="check_by_all_condition()"
			class="easyui-linkbutton" data-options="iconCls:'icon-zoom'">混合查询</a>
	</div>

	<!-- 弹出卡详情窗口 -->
	<div class="easyui-window" id="load_card_detail" title="诊疗卡详情"
		style="width: 450px; height: 250px" href="to_card_detail"
		data-options="closed:'true',model:true,onLoad:fuzhi"></div>
</body>
</html>